package com.sunsharing.common.config;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: criss
 * Date: 13-4-14
 * Time: 上午10:00
 * To change this template use File | Settings | File Templates.
 */
public class NodeModel {
    public String nodeId;
    //默认default
    public String domain;
    public String ip;
    //文件目录要用
    public String rootpath;
    public List<ChannelModel> channelModels = new ArrayList<ChannelModel>();

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        NodeModel nodeModel = (NodeModel) o;

        if (!nodeId.equals(nodeModel.nodeId)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return nodeId.hashCode();
    }
}
